package com.usian.article.feign;

import com.usian.model.article.dtos.ArticleInfoDto;
import com.usian.model.behavior.pojos.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * ClassName: ApBehaviorEntryClient
 * Author:   WGG
 * Date:    2022-12-2022/12/1-21:02
 * Version: 1.0
 * Description:
 */
@FeignClient(name="leadnews-behavior")
public interface ApBehaviorClient {

    @PostMapping("/behavior/api/v1/behavior/show_behavior")
    ApBehaviorEntry showBehavior(@RequestParam("entryId") Integer entryId, @RequestParam("equipmentId") Integer equipmentId);



    @PostMapping("/behavior/api/v1/behavior/show_forward_behavior")
    ApFollowBehavior showFollowBehavior(@RequestBody ArticleInfoDto dto);


    @PostMapping("/behavior/api/v1/show_likes_behavior")
    ApLikesBehavior showLikesBehavior(@RequestBody ArticleInfoDto dto);


    @PostMapping("/behavior/api/v1/show_read_behavior")
    ApReadBehavior showReadBehavior(@RequestBody ArticleInfoDto dto);


    @PostMapping("/behavior/api/v1/show_unlikes_behavior")
    ApUnlikesBehavior showUnlikesBehavior(@RequestBody ArticleInfoDto dto);


}
